<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets" template="template.xhtml">
	<ui:define name="header">
		<img src="images/logo.png"></img>
	</ui:define>
	<ui:define name="menu">
		<p:menu>
		</p:menu>
	</ui:define>
	<ui:define name="content">
		<h:form>
			<p:growl id="growl" showDetail="true" />
			<h:panelGrid columns="2"
				style="border: 1px; margin: 0 auto; width: 200px;">
				<h:outputLabel value="Login" />
				<h:inputText alt="login" value="#{usuarioBean.usuario.login}"
					id="login" required="true" requiredMessage="Login nao digitado" />
				<h:outputLabel value="Senha" />
				<h:inputSecret alt="senha" value="#{usuarioBean.usuario.senha}"
					id="senha" required="true" requiredMessage="Senha nao digitado" />
				<p:spacer width="10" />
				<p:commandButton value="Login"
					actionListener="#{usuarioBean.autenticaUsuario}"
					style="font-size: 12px; font-weight: bolder;"  update="growl"/>
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>